package cn.signalpha.modules.shop.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 实体类
 *
 * @author signalpha
 */
@Data
public class CouponDTO implements Serializable {
    private static final long serialVersionUID = 1L;


	@Data
	public static class SendDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@NotBlank
		@ApiModelProperty(value = "优惠券ids")
		private String ids;
		@NotBlank
		@ApiModelProperty(value = "目标用户id")
		private String userIds;
	}

	@Data
	public static class ReceiveDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@NotNull
		@ApiModelProperty(value = "优惠券id")
		private Long id;

	}

}
